package com.amuse.amuse.service;

import com.amuse.amuse.entity.PageBean;
import com.amuse.amuse.entity.facilities;
import com.amuse.amuse.entity.facilityReservations;
import com.github.pagehelper.Page;

import java.util.List;

public interface FacilityPermissionService {
    /*
    * 管理员添加场地
    * */
    public Integer addFacility(facilities facilities);

    /*
    *管理员删除场地
    * */
    public Integer deleteFacility(Integer facilityId);

    /*
    * 管理员修改场地信息
    * */
    public Integer updateFacility(facilities facilities);


    /*
    * 学生和管理员根据typeName查询场地信息,添加分页
    * */
    public PageBean<facilities> findFacilityByTypeName(Integer pageNum, Integer pageSize, String typeName);

    /*
    * 学生预约场地
    * */
    public Integer addFacilityReservations(Integer facilityId, Integer studentId, String startTime, String endTime, String reservationDate, String status);

    /*
    * 学生取消预约场地
    * */
    public Integer deleteFacilityReservations(Integer studentId, Integer facilityId);

    /*
    * 学生查询自己预约
    * */
    public PageBean<facilityReservations> findFacilityReservations(Integer pageNum, Integer pageSize, Integer studentId);

    /*
    * 学生修改自己的预约
    * */
    public Integer updateFacilityReservations(Integer studentId, Integer facilityId, String startTime, String endTime, String reservationDate);

//    /*
//    * 更新场地状态
//    * */
//    public Integer updateFacilityStatus(Integer facilityId, String status);
}
